package pe.com.empresa.datos.dominio;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class EstadoOrdenCompraExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public EstadoOrdenCompraExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andNumeroOrdenCompraIsNull() {
            addCriterion("numeroOrdenCompra is null");
            return (Criteria) this;
        }

        public Criteria andNumeroOrdenCompraIsNotNull() {
            addCriterion("numeroOrdenCompra is not null");
            return (Criteria) this;
        }

        public Criteria andNumeroOrdenCompraEqualTo(String value) {
            addCriterion("numeroOrdenCompra =", value, "numeroOrdenCompra");
            return (Criteria) this;
        }

        public Criteria andNumeroOrdenCompraNotEqualTo(String value) {
            addCriterion("numeroOrdenCompra <>", value, "numeroOrdenCompra");
            return (Criteria) this;
        }

        public Criteria andNumeroOrdenCompraGreaterThan(String value) {
            addCriterion("numeroOrdenCompra >", value, "numeroOrdenCompra");
            return (Criteria) this;
        }

        public Criteria andNumeroOrdenCompraGreaterThanOrEqualTo(String value) {
            addCriterion("numeroOrdenCompra >=", value, "numeroOrdenCompra");
            return (Criteria) this;
        }

        public Criteria andNumeroOrdenCompraLessThan(String value) {
            addCriterion("numeroOrdenCompra <", value, "numeroOrdenCompra");
            return (Criteria) this;
        }

        public Criteria andNumeroOrdenCompraLessThanOrEqualTo(String value) {
            addCriterion("numeroOrdenCompra <=", value, "numeroOrdenCompra");
            return (Criteria) this;
        }

        public Criteria andNumeroOrdenCompraLike(String value) {
            addCriterion("numeroOrdenCompra like", value, "numeroOrdenCompra");
            return (Criteria) this;
        }

        public Criteria andNumeroOrdenCompraNotLike(String value) {
            addCriterion("numeroOrdenCompra not like", value, "numeroOrdenCompra");
            return (Criteria) this;
        }

        public Criteria andNumeroOrdenCompraIn(List<String> values) {
            addCriterion("numeroOrdenCompra in", values, "numeroOrdenCompra");
            return (Criteria) this;
        }

        public Criteria andNumeroOrdenCompraNotIn(List<String> values) {
            addCriterion("numeroOrdenCompra not in", values, "numeroOrdenCompra");
            return (Criteria) this;
        }

        public Criteria andNumeroOrdenCompraBetween(String value1, String value2) {
            addCriterion("numeroOrdenCompra between", value1, value2, "numeroOrdenCompra");
            return (Criteria) this;
        }

        public Criteria andNumeroOrdenCompraNotBetween(String value1, String value2) {
            addCriterion("numeroOrdenCompra not between", value1, value2, "numeroOrdenCompra");
            return (Criteria) this;
        }

        public Criteria andIdResponsableIsNull() {
            addCriterion("idResponsable is null");
            return (Criteria) this;
        }

        public Criteria andIdResponsableIsNotNull() {
            addCriterion("idResponsable is not null");
            return (Criteria) this;
        }

        public Criteria andIdResponsableEqualTo(Integer value) {
            addCriterion("idResponsable =", value, "idResponsable");
            return (Criteria) this;
        }

        public Criteria andIdResponsableNotEqualTo(Integer value) {
            addCriterion("idResponsable <>", value, "idResponsable");
            return (Criteria) this;
        }

        public Criteria andIdResponsableGreaterThan(Integer value) {
            addCriterion("idResponsable >", value, "idResponsable");
            return (Criteria) this;
        }

        public Criteria andIdResponsableGreaterThanOrEqualTo(Integer value) {
            addCriterion("idResponsable >=", value, "idResponsable");
            return (Criteria) this;
        }

        public Criteria andIdResponsableLessThan(Integer value) {
            addCriterion("idResponsable <", value, "idResponsable");
            return (Criteria) this;
        }

        public Criteria andIdResponsableLessThanOrEqualTo(Integer value) {
            addCriterion("idResponsable <=", value, "idResponsable");
            return (Criteria) this;
        }

        public Criteria andIdResponsableIn(List<Integer> values) {
            addCriterion("idResponsable in", values, "idResponsable");
            return (Criteria) this;
        }

        public Criteria andIdResponsableNotIn(List<Integer> values) {
            addCriterion("idResponsable not in", values, "idResponsable");
            return (Criteria) this;
        }

        public Criteria andIdResponsableBetween(Integer value1, Integer value2) {
            addCriterion("idResponsable between", value1, value2, "idResponsable");
            return (Criteria) this;
        }

        public Criteria andIdResponsableNotBetween(Integer value1, Integer value2) {
            addCriterion("idResponsable not between", value1, value2, "idResponsable");
            return (Criteria) this;
        }

        public Criteria andEstadoIsNull() {
            addCriterion("estado is null");
            return (Criteria) this;
        }

        public Criteria andEstadoIsNotNull() {
            addCriterion("estado is not null");
            return (Criteria) this;
        }

        public Criteria andEstadoEqualTo(Integer value) {
            addCriterion("estado =", value, "estado");
            return (Criteria) this;
        }

        public Criteria andEstadoNotEqualTo(Integer value) {
            addCriterion("estado <>", value, "estado");
            return (Criteria) this;
        }

        public Criteria andEstadoGreaterThan(Integer value) {
            addCriterion("estado >", value, "estado");
            return (Criteria) this;
        }

        public Criteria andEstadoGreaterThanOrEqualTo(Integer value) {
            addCriterion("estado >=", value, "estado");
            return (Criteria) this;
        }

        public Criteria andEstadoLessThan(Integer value) {
            addCriterion("estado <", value, "estado");
            return (Criteria) this;
        }

        public Criteria andEstadoLessThanOrEqualTo(Integer value) {
            addCriterion("estado <=", value, "estado");
            return (Criteria) this;
        }

        public Criteria andEstadoIn(List<Integer> values) {
            addCriterion("estado in", values, "estado");
            return (Criteria) this;
        }

        public Criteria andEstadoNotIn(List<Integer> values) {
            addCriterion("estado not in", values, "estado");
            return (Criteria) this;
        }

        public Criteria andEstadoBetween(Integer value1, Integer value2) {
            addCriterion("estado between", value1, value2, "estado");
            return (Criteria) this;
        }

        public Criteria andEstadoNotBetween(Integer value1, Integer value2) {
            addCriterion("estado not between", value1, value2, "estado");
            return (Criteria) this;
        }

        public Criteria andFechaRegistroIsNull() {
            addCriterion("fechaRegistro is null");
            return (Criteria) this;
        }

        public Criteria andFechaRegistroIsNotNull() {
            addCriterion("fechaRegistro is not null");
            return (Criteria) this;
        }

        public Criteria andFechaRegistroEqualTo(Date value) {
            addCriterion("fechaRegistro =", value, "fechaRegistro");
            return (Criteria) this;
        }

        public Criteria andFechaRegistroNotEqualTo(Date value) {
            addCriterion("fechaRegistro <>", value, "fechaRegistro");
            return (Criteria) this;
        }

        public Criteria andFechaRegistroGreaterThan(Date value) {
            addCriterion("fechaRegistro >", value, "fechaRegistro");
            return (Criteria) this;
        }

        public Criteria andFechaRegistroGreaterThanOrEqualTo(Date value) {
            addCriterion("fechaRegistro >=", value, "fechaRegistro");
            return (Criteria) this;
        }

        public Criteria andFechaRegistroLessThan(Date value) {
            addCriterion("fechaRegistro <", value, "fechaRegistro");
            return (Criteria) this;
        }

        public Criteria andFechaRegistroLessThanOrEqualTo(Date value) {
            addCriterion("fechaRegistro <=", value, "fechaRegistro");
            return (Criteria) this;
        }

        public Criteria andFechaRegistroIn(List<Date> values) {
            addCriterion("fechaRegistro in", values, "fechaRegistro");
            return (Criteria) this;
        }

        public Criteria andFechaRegistroNotIn(List<Date> values) {
            addCriterion("fechaRegistro not in", values, "fechaRegistro");
            return (Criteria) this;
        }

        public Criteria andFechaRegistroBetween(Date value1, Date value2) {
            addCriterion("fechaRegistro between", value1, value2, "fechaRegistro");
            return (Criteria) this;
        }

        public Criteria andFechaRegistroNotBetween(Date value1, Date value2) {
            addCriterion("fechaRegistro not between", value1, value2, "fechaRegistro");
            return (Criteria) this;
        }

        public Criteria andObservacionIsNull() {
            addCriterion("observacion is null");
            return (Criteria) this;
        }

        public Criteria andObservacionIsNotNull() {
            addCriterion("observacion is not null");
            return (Criteria) this;
        }

        public Criteria andObservacionEqualTo(String value) {
            addCriterion("observacion =", value, "observacion");
            return (Criteria) this;
        }

        public Criteria andObservacionNotEqualTo(String value) {
            addCriterion("observacion <>", value, "observacion");
            return (Criteria) this;
        }

        public Criteria andObservacionGreaterThan(String value) {
            addCriterion("observacion >", value, "observacion");
            return (Criteria) this;
        }

        public Criteria andObservacionGreaterThanOrEqualTo(String value) {
            addCriterion("observacion >=", value, "observacion");
            return (Criteria) this;
        }

        public Criteria andObservacionLessThan(String value) {
            addCriterion("observacion <", value, "observacion");
            return (Criteria) this;
        }

        public Criteria andObservacionLessThanOrEqualTo(String value) {
            addCriterion("observacion <=", value, "observacion");
            return (Criteria) this;
        }

        public Criteria andObservacionLike(String value) {
            addCriterion("observacion like", value, "observacion");
            return (Criteria) this;
        }

        public Criteria andObservacionNotLike(String value) {
            addCriterion("observacion not like", value, "observacion");
            return (Criteria) this;
        }

        public Criteria andObservacionIn(List<String> values) {
            addCriterion("observacion in", values, "observacion");
            return (Criteria) this;
        }

        public Criteria andObservacionNotIn(List<String> values) {
            addCriterion("observacion not in", values, "observacion");
            return (Criteria) this;
        }

        public Criteria andObservacionBetween(String value1, String value2) {
            addCriterion("observacion between", value1, value2, "observacion");
            return (Criteria) this;
        }

        public Criteria andObservacionNotBetween(String value1, String value2) {
            addCriterion("observacion not between", value1, value2, "observacion");
            return (Criteria) this;
        }

        public Criteria andIdFileIsNull() {
            addCriterion("idFile is null");
            return (Criteria) this;
        }

        public Criteria andIdFileIsNotNull() {
            addCriterion("idFile is not null");
            return (Criteria) this;
        }

        public Criteria andIdFileEqualTo(Integer value) {
            addCriterion("idFile =", value, "idFile");
            return (Criteria) this;
        }

        public Criteria andIdFileNotEqualTo(Integer value) {
            addCriterion("idFile <>", value, "idFile");
            return (Criteria) this;
        }

        public Criteria andIdFileGreaterThan(Integer value) {
            addCriterion("idFile >", value, "idFile");
            return (Criteria) this;
        }

        public Criteria andIdFileGreaterThanOrEqualTo(Integer value) {
            addCriterion("idFile >=", value, "idFile");
            return (Criteria) this;
        }

        public Criteria andIdFileLessThan(Integer value) {
            addCriterion("idFile <", value, "idFile");
            return (Criteria) this;
        }

        public Criteria andIdFileLessThanOrEqualTo(Integer value) {
            addCriterion("idFile <=", value, "idFile");
            return (Criteria) this;
        }

        public Criteria andIdFileIn(List<Integer> values) {
            addCriterion("idFile in", values, "idFile");
            return (Criteria) this;
        }

        public Criteria andIdFileNotIn(List<Integer> values) {
            addCriterion("idFile not in", values, "idFile");
            return (Criteria) this;
        }

        public Criteria andIdFileBetween(Integer value1, Integer value2) {
            addCriterion("idFile between", value1, value2, "idFile");
            return (Criteria) this;
        }

        public Criteria andIdFileNotBetween(Integer value1, Integer value2) {
            addCriterion("idFile not between", value1, value2, "idFile");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}